import _axios from '@/plugins/axios'

const ROOT = `/app/`

// 上传文件
export function uploadFile(data) {
  return _axios.post(`${ROOT}common/fileUpload`, {
    is_ticket: 1,
    ...data,
  }, {
    headers: {
      'Content-Type': 'multipart/form-data;',
    }
  })
}

// 获取公司信息
export function companyInfo(data) {
  return _axios.get(`${ROOT}common/companyInfo`, data)
}
